person = "胖卡"
reading_books = "卡片笔记写作"
days = 5

#################
# Concatenating strings

print(person + " is reading 《" + reading_books + "》has " + str(days) + " days \n")

#################
# Previous %s formatting

message = "%s is reading 《%s》has %s days \n" % (person, reading_books,str(days))
print(message)

#################
# Previous string.format() method
message = "{} is reading 《{}》has {} days \n".format(
    person, reading_books,str(days))
print(message)

# 可以有顺序，从0开始
message = "{1} is reading 《{2}》has {0} days \n".format(
    str(days),person,reading_books,)
print(message)

# 也可以直接从对象中获取属性,这个可读性最强
reader = { "person": "胖卡", "reading_book": "曾国藩传","days": 12 }
message = "{person} is reading 《{reading_book}》has {days} days \n".format(**reader)
print(message)
#################